<div class="portlet">
  <div class="portlet-header">
    <h1><%=t ".title"%></h1>
  </div>
  <div class="portlet-content">
    <% form_for(@scheduled_task) do |f| %>
    <%= f.error_messages %>
        <table>
          <tbody>
            <tr>
              <td> <%= f.label t('activerecord.attributes.scheduled_task.task') %> </td>
              <td> <%=  collection_select(:scheduled_task, :task_id, @tasks, :id, :name, :prompt =>true) %> </td>
            </tr>
            <tr>
              <td> <%= f.label t('activerecord.attributes.scheduled_task.frequency_id') %> </td>
              <td> <%= select(:scheduled_task, :frequency_id, options_for_select(@frequencies.map {|u| [t(frequency_to_str(u)),u]}) ) %> </td>
            </tr>
            <tr>
              <td> <%= f.label t('activerecord.attributes.scheduled_task.time_of_day') %> </td>
              <td> <%= f.text_field :time_of_day, :size => 5 %> </td>
            </tr>
          </tbody>
        </table>
      <div class="line-buttons">
        <%= f.submit t('btn_create')%>
      </div>
      <div class="line-links">
        <%= link_to t('btn_back'), scheduled_tasks_redirect_back_path(scheduled_tasks_path) %>
      </div>
    <% end %>
  </div>

  <div class="portlet-footer">
  </div>
</div>
